using System;
using System.Collections.Generic;
using System.Management;
using System.Text;
using System.Xml;
using Universe.Farm.Builtin.ComputerInfo;
using Universe.Farm.Builtin.LocalComputerListener;

namespace Universe.Farm.Builtin.ComputerInfo
{
    public class ComputerInfoHealth: IServiceHealthListener
    {
        public Type DescryptionType
        {
            get { return typeof (ComputerInfoDescription); }
        }

        object IServiceHealthListener.Ping
        {
            get
            {
                return ComputerInfoDescription.Current;
            }
        }


        public string DefaultID
        {
            get { return "ComputerInfo"; }
        }


        public TimeSpan DefaultPingInterval
        {
            get { return TimeSpan.FromSeconds(20); }
        }

    }
}